package com.example.business_oa.service;

import com.example.comment_oa.dubbo.FuLiLiuChengJuJueDubbo;
import com.example.comment_oa.dubbo.MouthAtDubbo;
import com.example.comment_oa.pojos.MouthAt;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KaoQinService {

    @DubboReference(version = "1.0.0")
    MouthAtDubbo mouthAtDubbo;

    @GlobalTransactional(timeoutMills = 600000)
    public  List<MouthAt> kaoqin(String userno){
        List<MouthAt> mouthAts = mouthAtDubbo.threMouthAt(userno);
        return mouthAts;
    }
}
